import axios from '~/axios'

export function getRuleList(page,pageSize){
    return axios.post("/sys/rule/getRuleList",{
        page,
        pageSize
    })
}

export function getRuleDetail(id){
    return axios.post("/sys/rule/getRuleInfo",{
        id
    })
}

export function createRule(data){
    return axios.post("/sys/rule/createRule",data)
}

export function saveRule(saveData){
    return axios.put("/sys/rule/setRuleInfo",saveData)
}

export function deleteRule(id){
    return axios.post("/sys/rule/deleteRule",{
        id
    })
}

export function getAllRule(){
    return axios.post("/sys/rule/getAllRuleList")
}